//
//  MemberCenterViewModel.h
//  yanyi
//
//  Created by dyy-ios4 on 2023/6/21.
//

#define requestVipInfoUrlString @"Vip.MyVip"  //获取套餐列表

#define requestVipRightString @"/vipright/getVipRightList" //获取vip权限列表

#define confirmBuyResultUrlString @"pay/notify_member_ios"  //验证购买凭据

#define confirmReChargeResultUrlString @"pay/notify_ios_paypal" //验证充值凭据

#define requestAppleBuyOrderNumber @"Vip.GetIosOrder" //获取VIP苹果交易订单号

#define requestAppleBuyRechargeOrderNumber @"Charge.GetPaypalOrder" //获取充值苹果交易订单号


//#import "YRVipMessageModel.h"
//#import "YRVipRightModel.h"


#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface MemberCenterViewModel : NSObject

//请求VIP 信息
//+ (void)requestVipInfoCompletion:(void (^)(YRVipMessageModel * model, BOOL success, NSString *errorMessage))completion;

//MARK: 请求vip 权限
//+ (void)requestVipRightCompletion:(void (^)(NSArray < YRVipRightModel *> * modelArray, BOOL success, NSString *errorMessage))completion;

//MARK: 验证购买凭据
/*/
 iosVersion iOS  版本号
 receiptData 凭据数据
 orderNumber 订单号
 */
+ (void)confirmBuyResultWithreceiptData:(NSString *)receiptData orderNumber:(NSString *)orderNumber Completion:(void (^)(NSObject * model, BOOL success, NSString *errorMessage))completion;

+ (void)confirmRechargeResultWithreceiptData:(NSString *)receiptData orderNumber:(NSString *)orderNumber rechargeID:(NSString *)rechargeID Completion:(void (^)(NSObject * model, BOOL success, NSString *errorMessage))completion;

//MARK: 获取苹果的交易订单号

//+ (void)requestAppleEachangeOrderNumberVipId:(NSString *)vipID money:(NSString *)money Completion:(void (^)(NSArray < YROrderNumberModel *> * modelArray, BOOL success, NSString *errorMessage))completion;
//
//+ (void)requestAppleRechargeOrderNumberVipId:(NSString *)rechargeId money:(NSString *)money coin:(NSString *)coin Completion:(void (^)(NSArray < YROrderNumberModel *> * modelArray, BOOL success, NSString *errorMessage))completion;



@end

NS_ASSUME_NONNULL_END
